package com.tang.sso.exception;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 自定义异常类：
 * AsyncConfigurer
 *
 * @author hry
 */
@SpringBootApplication
@EnableAsync // 启动异步调用
public class AsyncApplicationWithAsyncConfigurer {

    private static final Logger logger = LogManager.getLogger(AsyncApplicationWithAsyncConfigurer.class);

    public static void main(String[] args) {
        logger.info("Start AsyncApplication.. ");
        SpringApplication.run(AsyncApplicationWithAsyncConfigurer.class, args);
    }

}
